#!/usr/bin/python

import socket
from util import port

s = socket.socket()
host = socket.gethostname()
s.bind((host, port))

s.listen(0)
while True:
    c, addr = s.accept()
    print(f"remote address: {addr}")
    msg = 'think about the worst!'
    c.send(msg.encode())
    c.close()
